﻿

using BotDetector.Core;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BotDetector.Tests.Generated
{
    [TestClass]
    public class DetectorBotTestWithTopicSport
    {
        private static Detector detector;

        [ClassInitialize()]
        public static void ClassInit(TestContext context)
        {
            detector = new Detector();
        }

		        [TestMethod]
        public void TestForIndividualBotTextWithTopicSport1()
        {
            double rez = detector.Classify("Andy Murray said securing Britain's first Davis Cup win for 79 years was a more emotional experience than winning Grand Slam titles or Olympic gold. The British number one beat Belgium's David Goffin in straight sets to give them an unassailable 3-1 lead in Ghent. Murray, 28, won 11 of 12 points during Britain's first successful campaign since 1936.");

            Assert.IsTrue((rez > 0.5), "Sport test 1 failed");
        }
		        [TestMethod]
        public void TestForIndividualBotTextWithTopicSport2()
        {
            double rez = detector.Classify("Five-time NBA champion Kobe Bryant, widely regarded as one of the greatest basketball players in history, will retire at the end of the season. Bryant has scored 32,683 points during a 20-year career with the LA Lakers to rank third on the NBA's all-time list. The two-time Olympic gold medallist, 37, has been hindered by injuries in recent seasons and has been below his best this year for the Lakers.");

            Assert.IsTrue((rez > 0.5), "Sport test 2 failed");
        }
		        [TestMethod]
        public void TestForIndividualBotTextWithTopicSport3()
        {
            double rez = detector.Classify("David Haye says Tyson Fury is refusing to fight him because his style would 'absolutely murder' that of the newly crowned world heavyweight champion. Fury, who won three belts from Wladimir Klitschko on Saturday, has said he will never defend his titles against Haye. They were scheduled to fight twice in 2013, but Haye pulled out of both.");

            Assert.IsTrue((rez > 0.5), "Sport test 3 failed");
        }
		        [TestMethod]
        public void TestForIndividualBotTextWithTopicSport4()
        {
            double rez = detector.Classify("The five candidates for the 2015 BBC African Footballer of the Year have been revealed during a special live launch broadcast in Johannesburg, South Africa. Algeria's Yacine Brahimi, the 2014 winner, is on the shortlist along with Gabon's Pierre-Emerick Aubameyang, Ghanaian Andre Ayew, Senegal's Sadio Mane and Yaya Toure of Ivory Coast.");

            Assert.IsTrue((rez > 0.5), "Sport test 4 failed");
        }
			}
}